package edu.ynu.se.xiecheng.achitectureclass.dao;
import edu.ynu.se.xiecheng.achitectureclass.common.dao.LogicDAO;
import edu.ynu.se.xiecheng.achitectureclass.entity.SoilMoistureData;
import org.springframework.data.jpa.repository.JpaRepository;
import edu.ynu.se.xiecheng.achitectureclass.entity.CameraData;

import java.util.List;

public interface CameraDataDao extends LogicDAO<CameraData, Long> {
    List<CameraData> findAll();
    CameraData findTopByIsDeletedOrderByCreateTimeDesc(int isDeleted);
    List<CameraData> findByCreateTimeAfter(java.util.Date time);
    List<CameraData> findAllByOrderByCreateTimeDesc();
    CameraData findTopByOrderByCreateTimeDesc();
}
